package com.jacklin.VO;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 商品详情(控制返回给前端的属性字段-使用@JsonProperty)
 * @Author:JackLin
 * @Create 2019/3/27 0:13
 */
@Data
public class ProductInfoVO implements Serializable {


    private static final long serialVersionUID = 3154968613666019444L;

    @JsonProperty("id") //返回给前端的属性为id
    private String productId;

    @JsonProperty("name")
    private String productName;

    @JsonProperty("type")
    private Integer categoryType;

    @JsonProperty("price")
    private BigDecimal productPrice;

    @JsonProperty("description")
    private String getProductDescription;

    @JsonProperty("icon")
    private String productIcon;

}
